            <!-- Begin: Wrapper Header -->
            <div class="header hidden">
<? Shell::showWidgets('wrapper-header') ?>
            </div> <!-- End -->
            
            <!-- Begin: Sidebar Left -->
            <div class="sidebar left">
<? Shell::showWidgets('sidebar-left') ?>                
            </div> <!-- End -->
            
            <!-- Begin: Content Enterprises -->
            <div class="content enterprises">
                <div class="header"><h1>Revendas</h1></div>
                <div class="banners-lateral">
                    <span>Publicidade</span>
                    <ul>
<?
if (isset(LayoutPage::$banners['lateral2'])):
    $banners = LayoutPage::$banners['lateral2'];
    foreach ($banners as $banner):
        if ($banner == null):
?>
                        <li>
                            <a href="javascript:;">
                                <img src="<?= _BNN_IMG_ ?>lateral2.jpg" alt="Banner" />
                            </a>
                        </li>
<?
        else:
?>
                        <li>
<?
            if (strtolower(pathinfo($banner->filepicture, PATHINFO_EXTENSION)) == 'jpg'):
                if (!$banner->id_enterprise):
?>
                            <a href="<?= $banner->href ?>" target="<?= $banner->target ?>">
<? else: ?>
                            <a href="<?= __BASE_URI__.'revenda/'.urlencode(strtolower(str_replace(' ', '-', $banner->fancyname))).'/'.$banner->e_id ?>">
<? endif ?>
                                <img src="<?= _BNN_IMG_.$banner->filepicture ?>" alt="Banner" />
                            </a>
<? else: ?>
                            <object width="120" height="60">
                                <param name="src" value="<?= _BNN_IMG_.$banner->filepicture ?>">
                                <param name="wmode" value="opaque">
                                <embed src="<?= _BNN_IMG_.$banner->filepicture ?>" width="120" height="60"></embed>
                            </object>
<? if (!$banner->id_enterprise): ?>
                            <a class="flash" href="<?= $banner->href ?>" target="<?= $banner->target ?>"></a>
<? else: ?>
                            <a class="flash" href="<?= __BASE_URI__.'revenda/'.urlencode(strtolower(str_replace(' ', '-', $banner->fancyname))).'/'.$banner->e_id ?>"></a>
<?
                endif;
            endif;
?>
                        </li>
<?
        endif;
    endforeach;
endif
?>
                    </ul>
                </div>
                <div class="enterprise">
<?
if (!empty(Enterprises::$data)):
    foreach (Enterprises::$data as $enterprise):
?>
                    <div class="enterprise-container">
                        <a href="<?= __BASE_URI__.'revenda/'.urlencode(strtolower(str_replace(' ', '-', $enterprise->fancyname))).'/'.$enterprise->e_id ?>">
<? if (!empty($enterprise->filepicture)): ?>
                            <img src="<?= _ETP_IMG_.'thumb/'.$enterprise->filepicture ?>" />
<? else: ?>
                            <img src="<?= _ETP_IMG_ ?>thumb/no-image.jpg" />
<? endif ?>
                        </a>
                        <div class="enterprise-detail">
                            <h2>
                                <a href="<?= __BASE_URI__.'revenda/'.urlencode(strtolower(str_replace(' ', '-', $enterprise->fancyname))).'/'.$enterprise->e_id ?>">
                                    <?= $enterprise->fancyname ?>
                                </a>
                            </h2>
                            <ul>
                                <li><b>Endereço:</b> <?= $enterprise->address.', '.$enterprise->number ?></li>
                                <li><b>Cidade:</b> <?= $enterprise->c_name.' - '.$enterprise->s_symbol ?></li>
                                <li><b>Telefone:</b> <?= Util::format_phone($enterprise->p_areacode.$enterprise->p_number) ?></li>
                            </ul>
                            <div class="enterprise-logo">
<? if (!empty($enterprise->filebrand)): ?>
                                <img class="logo" src="<?= _ETP_IMG_.'logo/'.$enterprise->filebrand ?>" />
<? else: ?>
                                <img class="logo" src="<?= _ETP_IMG_ ?>logo/no-image.jpg" />
<? endif ?>
                                <div class="enterprise-totalvehicle"><?= DbGet::enterprise_vehicles_numrows($enterprise->e_id) ?> Veículos</div>
                            </div>
                        </div>
                    </div>
<?
endforeach;
endif
?>
                </div>    
                <div class="pages-menu">
                    <?= Enterprises::$pagination->html ?>
                </div>   
            </div>
         </div> <!-- End -->
